import request from '@/utils/request'

// 查询库存详情列表
export function listWarehouseDetail(query) {
  return request({
    url: '/storage/warehouseDetail/list',
    method: 'get',
    params: query
  })
}

// 查询库存详情详细
export function getWarehouseDetail(itemId) {
  return request({
    url: '/storage/warehouseDetail/' + itemId,
    method: 'get'
  })
}

// 新增库存详情
export function addWarehouseDetail(data) {
  return request({
    url: '/storage/warehouseDetail',
    method: 'post',
    data: data
  })
}

// 修改库存详情
export function updateWarehouseDetail(data) {
  return request({
    url: '/storage/warehouseDetail',
    method: 'put',
    data: data
  })
}

// 删除库存详情
export function delWarehouseDetail(itemId) {
  return request({
    url: '/storage/warehouseDetail/' + itemId,
    method: 'delete'
  })
}
